<?php

namespace App\Core\Utils\Oauth\QqSdk;

//session_start();

/* PHP SDK
 * @version 2.0.0
 * @author connect@qq.com
 * @copyright © 2013, Tencent Corporation. All rights reserved.
 */

require_once(dirname(__FILE__) . "/comm/config.php");
require_once(CLASS_PATH . "QC.class.php");

class QqConnectAPI
{

    protected $qc;

    /*
     * QC类，api外部对象，调用接口全部依赖于此对象(无参数)
     */
    public function getQC()
    {
        if (!$this->qc) {
            $this->qc = new \QC();
        }
        return $this->qc;
    }

    /**
     * QC类，api外部对象，调用接口全部依赖于此对象(有参数)
     */
    public function QC($access_token, $openid)
    {
        return new \QC($access_token, $openid);
    }

}

